import React, {PureComponent} from 'react'

import Btn from './Btn'

class Main extends PureComponent{
  render(){
    console.log("props: ", this.props)
    const {count, plus, minus, asyncPlus, asyncMinus} = this.props;

    return <div>{count}
    <Btn onClick={plus}>plus</Btn>
    <Btn onClick={minus}>minus</Btn>
    <Btn onClick={asyncPlus}>asyncPlus</Btn>
    <Btn onClick={asyncMinus}>asyncMinus</Btn>
    </div>
  }
}

export default Main;